$OpenBSD: patch-configure,v 1.5 2017/05/10 14:28:12 stu Exp $

Do not overwrite CFLAGS_OPTIMIZE.

Index: configure
--- configure.orig
+++ configure
@@ -6401,11 +6401,11 @@ fi
     ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
     TCL_LIB_VERSIONS_OK=ok
     CFLAGS_DEBUG=-g
-    CFLAGS_OPTIMIZE=-O
+    #CFLAGS_OPTIMIZE=-O
     if test "$GCC" = yes; then :
 
 	# TEA specific:
-	CFLAGS_OPTIMIZE=-O2
+	CFLAGS_OPTIMIZE=""
 	CFLAGS_WARNING="-W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -ansi -pedantic"
 
 else
@@ -7479,7 +7479,7 @@ fi
 		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
 fi
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
-	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
+	    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
 	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
 $as_echo_n "checking for ELF... " >&6; }
 if test "${tcl_cv_ld_elf+set}" = set; then :
@@ -7517,7 +7517,6 @@ fi
 		# OpenBSD builds and links with -pthread, never -lpthread.
 		LIBS=`echo $LIBS | sed s/-lpthread//`
 		CFLAGS="$CFLAGS -pthread"
-		SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"
 
 fi
 	    # OpenBSD doesn't do version numbers with dots.
